<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<script type="text/javascript">
  function addfun(){
	 
	  window.location='${ctx}/app/main/preaddfun?cpaid='+${cpaid}+'&verid='+${verid};
  }
</script>
<html>
<head>
<jsp:include page="/common/meta.jsp"></jsp:include>
<title></title>
   <script type="text/javascript">
            function onInvokeAction(id) {
                $.jmesa.setExportToLimit(id, '');

                var parameterString = $.jmesa.createParameterStringForLimit(id);
                $.get('${pageContext.request.contextPath}/app/main/viewfun?cpaid=${cpaid}&verid=${verid}&userid=${userid}&ajax=true&' + parameterString, function(data) {
                $("#wfuns").html(data)
            });
        }

        function onInvokeExportAction(id) {
            var parameterString = $.jmesa.createParameterStringForLimit(id);
            location.href = '${pageContext.request.contextPath}/app/main/viewfun?cpaid=${cpaid}&verid=${verid}&userid=${userid}&ajax=false&' + parameterString;
        }
        function showDescInfo(id){
            
        }
        function toacceptfun(id){
        	 var r=confirm("是否接受该模块!");
        	  if (r==true)
        	    {
        	 		window.location='${ctx}/app/main/toacceptfun?funid='+id;
        	    	//	document.write("您按了确认！"+id);
        	    }
        	  else
        	    {
        	    //document.write("您按了取消！");
        	    }

        }
        </script>
</head>
<body>
<fieldset class="mainbody" >
<div id="wfuns">
${wfunhtml }
</div>
</fieldset>
<td colspan="2">
<c:if test="${isCreate eq 'Y' }">
	<input type="button" onclick="addfun();" value="新增模块"/>
</c:if >
</td>
</body>
</html>